package com.example.demo.pdf.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Map;

/**
 * @ClassName PdfGenerateRequest
 * @Description PDF生成请求参数
 * @Author MingChang.Wei
 * @Date 2025/9/26
 **/
@Data
@Schema(description = "PDF生成请求参数")
public class PdfGenerateRequest {

    @NotBlank(message = "文件名不能为空")
    @Schema(description = "生成的PDF文件名", example = "report_20250926")
    private String fileName;

    @NotBlank(message = "模板名称不能为空")
    @Schema(description = "PDF模板名称", example = "template.fo")
    private String templateName;

    @NotNull(message = "数据不能为空")
    @Schema(description = "用于填充模板的数据")
    private Map<String, Object> data;

    @Schema(description = "输出目录", example = "G:/pdf_output/")
    private String outputDir;

    @Schema(description = "是否覆盖同名文件", example = "true")
    private Boolean overwrite = false;
}
